-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code cleanup #240
Code cleanup #240
Conversation
Move tests from javax to jakarta. Remove unused imports.
* <p> | ||
* A host string must be a domain string, an IPv4 address string, or "[", followed by an IPv6 address string, | ||
* followed by "]". | ||
*/ | ||
private static final Pattern DOMAIN_PATTERN = Pattern.compile( | ||
DOMAIN + "|\\[" + IP_V6_DOMAIN + "\\]", CASE_INSENSITIVE | ||
DOMAIN + "|\\[" + IP_V6_DOMAIN + "]", CASE_INSENSITIVE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was the regex incorrect?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
); | ||
|
||
/** | ||
* Regular expression for the domain part of an email address (everything after '@'). | ||
*/ | ||
private static final Pattern EMAIL_DOMAIN_PATTERN = Pattern.compile( | ||
DOMAIN + "|\\[" + IP_DOMAIN + "\\]|" + "\\[IPv6:" + IP_V6_DOMAIN + "\\]", CASE_INSENSITIVE | ||
DOMAIN + "|\\[" + IP_DOMAIN + "]|" + "\\[IPv6:" + IP_V6_DOMAIN + "]", CASE_INSENSITIVE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was the regex incorrect?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine thanks! |
Remove semicolons from groovy files.
Move tests from javax to jakarta.
Remove unused imports.